/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Vistas;

import Dominio.CtrlDominio;
import javax.swing.JOptionPane;

/**
 *
 * @author Juan Manuel Fuentes Diaz
 */
public class CargarDicc extends Thread {
    private CtrlDominio CD = CtrlDominio.getInstance();
    private int idi;
    private int dic;
    private String path;
     
    public CargarDicc(int idi,int dic, String path){
        this.idi = idi;
        this.path= path;
        this.dic =dic;
    }
    @Override
    public void run(){
        try{
        CD.crearDiccFile(idi,dic, path);
        } catch (Exception e) {
            JOptionPane.showMessageDialog(null, "Error: Diccionarios no cargados. Razon: " + e.getMessage());
        }
    }
    }

